package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmSensitive;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: ljl
 * @Date: 2022/11/16/21:55
 * @Description:
 */
public interface WmSensitiveService extends IService<WmSensitive> {
    /**
     * 查询所有的敏感词
     * @return
     */
    PageResponseResult wmSensitiveList(SensitiveDto sensitiveDto);

    /**
     * 根据id删除敏感词
     * @param id
     * @return
     */
    ResponseResult wmSensitiveDeleteById(Integer id);

    /**
     * 保存敏感词
     * @param wmSensitive
     * @return
     */
    ResponseResult wmSensitiveSave(WmSensitive wmSensitive);

    /**
     * 更新敏感词
     */
     ResponseResult wmSensitiveUpdate(WmSensitive wmSensitive);


    /**
     * 获取所有敏感词
     * @return
     */
    ResponseResult getAll();

}
